package com.sm.dao;

import com.github.pagehelper.Page;
import com.sm.model.HappyRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HappyRequestMapper {
    int insertRequest(HappyRequest happyRequest);
    Page<HappyRequest> selectHapptyRequestList();
    Page<HappyRequest> selectByUserId(Integer userId);
    HappyRequest selectRequestById(@Param("requestId") Integer requestId);
    Integer update(HappyRequest happyRequest);
    List<HappyRequest> getBotiqueList(Integer limit);

}
